package h.ku.eval
{
	public class ConditionalEval extends FunctionEval
	{
		
		public function ConditionalEval(a:Array)
		{
			super("",a)
		}
		
		protected override function finishArgEval(value:*):void
		{
			if(argIndex == 0)
			{
				argIndex = Boolean(value)?1:2
				if(argIndex == 2 && unevaluatedArgs[argIndex] == null){
					this.finishFunctionEval(value)
					return
				}
				beginArgEval()
			}else{
				this.finishFunctionEval(value)
				return
			}
			
		}
	}
}